<include file="public@header">
<style>
    .kefushow{
        height: 1.2rem;
        background: #1f2630;
        color: #fff;
        box-sizing: border-box;
/*        padding-left: 0.25rem;*/
    }  
    .kefushow>div{
        border-bottom: 0.01rem solid #eee;
        display: flex;
        align-items: center;
        height: 1.2rem;
        box-sizing: border-box;
        padding: 0.25rem;
    }
    .kefushow>div>label{
        display: flex;
        align-items: center;
        width: 100%;
    }
    .kefushow>div>label>p{
        font-weight: bold;
        font-size: 0.3rem;
    }
    .kefushow>div>label>input{
        margin-left: auto;
        border: 1px solid #eee;
        width: 0.3rem;
        height: 0.3rem;  
        appearance: none;
        border-radius: 50%;
    }
    
    .kefushow>div>label>input:checked {
        background-image: url(images/checked.png);
        background-size: 100%;
        border: 0px solid #eee;
    }
</style>
<body>
    <div class="bgbg headhead">
        <h3 class="mytitle">{:lang("Language")}</h3>
         <div class="kefuall">
             <div class="kefushow">
                 <div>
                     <label for="radio1">
                         <p>English</p>
                         <input type="radio" name="lang" id="radio1" <if cookie('think_var') == 'en-us'>checked="checked"</if> data-type="en" onchange="tablang(this)">
                     </label>
                 </div>
             </div>
             <div class="kefushow">
                 <div>
                     <label for="radio2">
                         <p>简体中文</p>
                         <input type="radio" name="lang" id="radio2" <if cookie('think_var') == 'zh-cn'>checked="checked"</if> data-type="cn" onchange="tablang(this)">
                     </label>
                 </div>
             </div>
         </div>
    </div>
    
    <script src="__STATIC__/hybit/js/jquery.min.js"></script>
    <script>
        function tablang(obj){
            let type = $(obj).attr('data-type');
            window.location.href = "{:url('portal/index/language')}?language="+type;
            console.log(type)
        }
    </script>
</body>
</html>